<?php

# Configurazione database
$DB['host'] = "localhost";
$DB['port'] = "5432";
$DB['user'] = "latino";
$DB['pass'] = "mariuano";
$DB['name'] = "latino_postgis";

function postgresql_connect() {
	global $DB;
	$DB['link'] = pg_connect("host=".$DB['host']." port=".$DB['port']." user=".$DB['user']." password=".$DB['pass']." dbname=".$DB['name']) or die ("Could not connect to PostgreSQL DB. Check connection configuration inside config.inc.php\n");
}
